Optimal. Leaf size=155 \[ \frac {x}{4 (b c-a d) \left (c+d x^2\right )^2}+\frac {(3 b c+a d) x}{8 c (b c-a d)^2 \left (c+d x^2\right )}-\frac {\sqrt {a} b^{3/2} \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{(b c-a d)^3}+\frac {\left (3 b^2 c^2+6 a b c d-a^2 d^2\right ) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{8 c^{3/2} \sqrt {d} (b c-a d)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {482, 541, 536,
211} \begin {gather*} \frac {\left (-a^2 d^2+6 a b c d+3 b^2 c^2\right ) \text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{8 c^{3/2} \sqrt {d} (b c-a d)^3}-\frac {\sqrt {a} b^{3/2} \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{(b c-a d)^3}+\frac {x (a d+3 b c)}{8 c \left (c+d x^2\right ) (b c-a d)^2}+\frac {x}{4 \left (c+d x^2\right )^2 (b c-a d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 482
Rule 536
Rule 541
Rubi steps
\begin {align*} \int \frac {x^2}{\left (a+b x^2\right ) \left (c+d x^2\right )^3} \, dx &=\frac {x}{4 (b c-a d) \left (c+d x^2\right )^2}-\frac {\int \frac {a-3 b x^2}{\left (a+b x^2\right ) \left (c+d x^2\right )^2} \, dx}{4 (b c-a d)}\\ &=\frac {x}{4 (b c-a d) \left (c+d x^2\right )^2}+\frac {(3 b c+a d) x}{8 c (b c-a d)^2 \left (c+d x^2\right )}-\frac {\int \frac {a (5 b c-a d)-b (3 b c+a d) x^2}{\left (a+b x^2\right ) \left (c+d x^2\right )} \, dx}{8 c (b c-a d)^2}\\ &=\frac {x}{4 (b c-a d) \left (c+d x^2\right )^2}+\frac {(3 b c+a d) x}{8 c (b c-a d)^2 \left (c+d x^2\right )}-\frac {\left (a b^2\right ) \int \frac {1}{a+b x^2} \, dx}{(b c-a d)^3}+\frac {\left (3 b^2 c^2+6 a b c d-a^2 d^2\right ) \int \frac {1}{c+d x^2} \, dx}{8 c (b c-a d)^3}\\ &=\frac {x}{4 (b c-a d) \left (c+d x^2\right )^2}+\frac {(3 b c+a d) x}{8 c (b c-a d)^2 \left (c+d x^2\right )}-\frac {\sqrt {a} b^{3/2} \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{(b c-a d)^3}+\frac {\left (3 b^2 c^2+6 a b c d-a^2 d^2\right ) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{8 c^{3/2} \sqrt {d} (b c-a d)^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 151, normalized size = 0.97 \begin {gather*} \frac {1}{8} \left (\frac {2 x}{(b c-a d) \left (c+d x^2\right )^2}+\frac {(3 b c+a d) x}{c (b c-a d)^2 \left (c+d x^2\right )}+\frac {8 \sqrt {a} b^{3/2} \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{(-b c+a d)^3}+\frac {\left (3 b^2 c^2+6 a b c d-a^2 d^2\right ) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{c^{3/2} \sqrt {d} (b c-a d)^3}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 151, normalized size = 0.97
method | result | size |
default | \(\frac {a \,b^{2} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\left (a d -b c \right )^{3} \sqrt {a b}}+\frac {\frac {\frac {d \left (a^{2} d^{2}+2 a b c d -3 b^{2} c^{2}\right ) x^{3}}{8 c}+\left (\frac {3}{4} a b c d -\frac {5}{8} b^{2} c^{2}-\frac {1}{8} a^{2} d^{2}\right ) x}{\left (d \,x^{2}+c \right )^{2}}+\frac {\left (a^{2} d^{2}-6 a b c d -3 b^{2} c^{2}\right ) \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{8 c \sqrt {c d}}}{\left (a d -b c \right )^{3}}\) | \(151\) |
risch | \(\frac {\frac {d \left (a d +3 b c \right ) x^{3}}{8 c \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}-\frac {\left (a d -5 b c \right ) x}{8 \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}}{\left (d \,x^{2}+c \right )^{2}}+\frac {\sqrt {-a b}\, b \ln \left (\left (-64 \left (-a b \right )^{\frac {3}{2}} a b \,c^{2} d^{2}-64 \left (-a b \right )^{\frac {3}{2}} b^{2} c^{3} d -\sqrt {-a b}\, a^{4} d^{4}+12 \sqrt {-a b}\, a^{3} b c \,d^{3}-94 \sqrt {-a b}\, a^{2} b^{2} c^{2} d^{2}-36 \sqrt {-a b}\, a \,b^{3} c^{3} d -9 \sqrt {-a b}\, b^{4} c^{4}\right ) x +d^{4} a^{5}-12 c \,d^{3} b \,a^{4}+30 b^{2} c^{2} d^{2} a^{3}-28 b^{3} c^{3} d \,a^{2}+9 b^{4} c^{4} a \right )}{2 \left (a d -b c \right )^{3}}-\frac {\sqrt {-a b}\, b \ln \left (\left (64 \left (-a b \right )^{\frac {3}{2}} a b \,c^{2} d^{2}+64 \left (-a b \right )^{\frac {3}{2}} b^{2} c^{3} d +\sqrt {-a b}\, a^{4} d^{4}-12 \sqrt {-a b}\, a^{3} b c \,d^{3}+94 \sqrt {-a b}\, a^{2} b^{2} c^{2} d^{2}+36 \sqrt {-a b}\, a \,b^{3} c^{3} d +9 \sqrt {-a b}\, b^{4} c^{4}\right ) x +d^{4} a^{5}-12 c \,d^{3} b \,a^{4}+30 b^{2} c^{2} d^{2} a^{3}-28 b^{3} c^{3} d \,a^{2}+9 b^{4} c^{4} a \right )}{2 \left (a d -b c \right )^{3}}-\frac {\ln \left (c \,d^{2} x -\left (-c d \right )^{\frac {3}{2}}\right ) a^{2} d^{2}}{16 \sqrt {-c d}\, \left (a d -b c \right )^{3} c}+\frac {3 \ln \left (c \,d^{2} x -\left (-c d \right )^{\frac {3}{2}}\right ) a b d}{8 \sqrt {-c d}\, \left (a d -b c \right )^{3}}+\frac {3 c \ln \left (c \,d^{2} x -\left (-c d \right )^{\frac {3}{2}}\right ) b^{2}}{16 \sqrt {-c d}\, \left (a d -b c \right )^{3}}+\frac {\ln \left (-c \,d^{2} x -\left (-c d \right )^{\frac {3}{2}}\right ) a^{2} d^{2}}{16 \sqrt {-c d}\, \left (a d -b c \right )^{3} c}-\frac {3 \ln \left (-c \,d^{2} x -\left (-c d \right )^{\frac {3}{2}}\right ) a b d}{8 \sqrt {-c d}\, \left (a d -b c \right )^{3}}-\frac {3 c \ln \left (-c \,d^{2} x -\left (-c d \right )^{\frac {3}{2}}\right ) b^{2}}{16 \sqrt {-c d}\, \left (a d -b c \right )^{3}}\) | \(699\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.55, size = 266, normalized size = 1.72 \begin {gather*} -\frac {a b^{2} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \sqrt {a b}} + \frac {{\left (3 \, b^{2} c^{2} + 6 \, a b c d - a^{2} d^{2}\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{8 \, {\left (b^{3} c^{4} - 3 \, a b^{2} c^{3} d + 3 \, a^{2} b c^{2} d^{2} - a^{3} c d^{3}\right )} \sqrt {c d}} + \frac {{\left (3 \, b c d + a d^{2}\right )} x^{3} + {\left (5 \, b c^{2} - a c d\right )} x}{8 \, {\left (b^{2} c^{5} - 2 \, a b c^{4} d + a^{2} c^{3} d^{2} + {\left (b^{2} c^{3} d^{2} - 2 \, a b c^{2} d^{3} + a^{2} c d^{4}\right )} x^{4} + 2 \, {\left (b^{2} c^{4} d - 2 \, a b c^{3} d^{2} + a^{2} c^{2} d^{3}\right )} x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 376 vs.
\(2 (133) = 266\).
time = 1.48, size = 1587, normalized size = 10.24 \begin {gather*} \left [\frac {2 \, {\left (3 \, b^{2} c^{3} d^{2} - 2 \, a b c^{2} d^{3} - a^{2} c d^{4}\right )} x^{3} - 8 \, {\left (b c^{2} d^{3} x^{4} + 2 \, b c^{3} d^{2} x^{2} + b c^{4} d\right )} \sqrt {-a b} \log \left (\frac {b x^{2} + 2 \, \sqrt {-a b} x - a}{b x^{2} + a}\right ) - {\left (3 \, b^{2} c^{4} + 6 \, a b c^{3} d - a^{2} c^{2} d^{2} + {\left (3 \, b^{2} c^{2} d^{2} + 6 \, a b c d^{3} - a^{2} d^{4}\right )} x^{4} + 2 \, {\left (3 \, b^{2} c^{3} d + 6 \, a b c^{2} d^{2} - a^{2} c d^{3}\right )} x^{2}\right )} \sqrt {-c d} \log \left (\frac {d x^{2} - 2 \, \sqrt {-c d} x - c}{d x^{2} + c}\right ) + 2 \, {\left (5 \, b^{2} c^{4} d - 6 \, a b c^{3} d^{2} + a^{2} c^{2} d^{3}\right )} x}{16 \, {\left (b^{3} c^{7} d - 3 \, a b^{2} c^{6} d^{2} + 3 \, a^{2} b c^{5} d^{3} - a^{3} c^{4} d^{4} + {\left (b^{3} c^{5} d^{3} - 3 \, a b^{2} c^{4} d^{4} + 3 \, a^{2} b c^{3} d^{5} - a^{3} c^{2} d^{6}\right )} x^{4} + 2 \, {\left (b^{3} c^{6} d^{2} - 3 \, a b^{2} c^{5} d^{3} + 3 \, a^{2} b c^{4} d^{4} - a^{3} c^{3} d^{5}\right )} x^{2}\right )}}, \frac {{\left (3 \, b^{2} c^{3} d^{2} - 2 \, a b c^{2} d^{3} - a^{2} c d^{4}\right )} x^{3} + {\left (3 \, b^{2} c^{4} + 6 \, a b c^{3} d - a^{2} c^{2} d^{2} + {\left (3 \, b^{2} c^{2} d^{2} + 6 \, a b c d^{3} - a^{2} d^{4}\right )} x^{4} + 2 \, {\left (3 \, b^{2} c^{3} d + 6 \, a b c^{2} d^{2} - a^{2} c d^{3}\right )} x^{2}\right )} \sqrt {c d} \arctan \left (\frac {\sqrt {c d} x}{c}\right ) - 4 \, {\left (b c^{2} d^{3} x^{4} + 2 \, b c^{3} d^{2} x^{2} + b c^{4} d\right )} \sqrt {-a b} \log \left (\frac {b x^{2} + 2 \, \sqrt {-a b} x - a}{b x^{2} + a}\right ) + {\left (5 \, b^{2} c^{4} d - 6 \, a b c^{3} d^{2} + a^{2} c^{2} d^{3}\right )} x}{8 \, {\left (b^{3} c^{7} d - 3 \, a b^{2} c^{6} d^{2} + 3 \, a^{2} b c^{5} d^{3} - a^{3} c^{4} d^{4} + {\left (b^{3} c^{5} d^{3} - 3 \, a b^{2} c^{4} d^{4} + 3 \, a^{2} b c^{3} d^{5} - a^{3} c^{2} d^{6}\right )} x^{4} + 2 \, {\left (b^{3} c^{6} d^{2} - 3 \, a b^{2} c^{5} d^{3} + 3 \, a^{2} b c^{4} d^{4} - a^{3} c^{3} d^{5}\right )} x^{2}\right )}}, \frac {2 \, {\left (3 \, b^{2} c^{3} d^{2} - 2 \, a b c^{2} d^{3} - a^{2} c d^{4}\right )} x^{3} - 16 \, {\left (b c^{2} d^{3} x^{4} + 2 \, b c^{3} d^{2} x^{2} + b c^{4} d\right )} \sqrt {a b} \arctan \left (\frac {\sqrt {a b} x}{a}\right ) - {\left (3 \, b^{2} c^{4} + 6 \, a b c^{3} d - a^{2} c^{2} d^{2} + {\left (3 \, b^{2} c^{2} d^{2} + 6 \, a b c d^{3} - a^{2} d^{4}\right )} x^{4} + 2 \, {\left (3 \, b^{2} c^{3} d + 6 \, a b c^{2} d^{2} - a^{2} c d^{3}\right )} x^{2}\right )} \sqrt {-c d} \log \left (\frac {d x^{2} - 2 \, \sqrt {-c d} x - c}{d x^{2} + c}\right ) + 2 \, {\left (5 \, b^{2} c^{4} d - 6 \, a b c^{3} d^{2} + a^{2} c^{2} d^{3}\right )} x}{16 \, {\left (b^{3} c^{7} d - 3 \, a b^{2} c^{6} d^{2} + 3 \, a^{2} b c^{5} d^{3} - a^{3} c^{4} d^{4} + {\left (b^{3} c^{5} d^{3} - 3 \, a b^{2} c^{4} d^{4} + 3 \, a^{2} b c^{3} d^{5} - a^{3} c^{2} d^{6}\right )} x^{4} + 2 \, {\left (b^{3} c^{6} d^{2} - 3 \, a b^{2} c^{5} d^{3} + 3 \, a^{2} b c^{4} d^{4} - a^{3} c^{3} d^{5}\right )} x^{2}\right )}}, \frac {{\left (3 \, b^{2} c^{3} d^{2} - 2 \, a b c^{2} d^{3} - a^{2} c d^{4}\right )} x^{3} - 8 \, {\left (b c^{2} d^{3} x^{4} + 2 \, b c^{3} d^{2} x^{2} + b c^{4} d\right )} \sqrt {a b} \arctan \left (\frac {\sqrt {a b} x}{a}\right ) + {\left (3 \, b^{2} c^{4} + 6 \, a b c^{3} d - a^{2} c^{2} d^{2} + {\left (3 \, b^{2} c^{2} d^{2} + 6 \, a b c d^{3} - a^{2} d^{4}\right )} x^{4} + 2 \, {\left (3 \, b^{2} c^{3} d + 6 \, a b c^{2} d^{2} - a^{2} c d^{3}\right )} x^{2}\right )} \sqrt {c d} \arctan \left (\frac {\sqrt {c d} x}{c}\right ) + {\left (5 \, b^{2} c^{4} d - 6 \, a b c^{3} d^{2} + a^{2} c^{2} d^{3}\right )} x}{8 \, {\left (b^{3} c^{7} d - 3 \, a b^{2} c^{6} d^{2} + 3 \, a^{2} b c^{5} d^{3} - a^{3} c^{4} d^{4} + {\left (b^{3} c^{5} d^{3} - 3 \, a b^{2} c^{4} d^{4} + 3 \, a^{2} b c^{3} d^{5} - a^{3} c^{2} d^{6}\right )} x^{4} + 2 \, {\left (b^{3} c^{6} d^{2} - 3 \, a b^{2} c^{5} d^{3} + 3 \, a^{2} b c^{4} d^{4} - a^{3} c^{3} d^{5}\right )} x^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.77, size = 206, normalized size = 1.33 \begin {gather*} -\frac {a b^{2} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \sqrt {a b}} + \frac {{\left (3 \, b^{2} c^{2} + 6 \, a b c d - a^{2} d^{2}\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{8 \, {\left (b^{3} c^{4} - 3 \, a b^{2} c^{3} d + 3 \, a^{2} b c^{2} d^{2} - a^{3} c d^{3}\right )} \sqrt {c d}} + \frac {3 \, b c d x^{3} + a d^{2} x^{3} + 5 \, b c^{2} x - a c d x}{8 \, {\left (b^{2} c^{3} - 2 \, a b c^{2} d + a^{2} c d^{2}\right )} {\left (d x^{2} + c\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.06, size = 2500, normalized size = 16.13 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________